/**
 * @author hoang.pt
 * @version $Id: ThreadTest.java 67 2010-08-26 04:42:59Z phantichhoang $
 */
package snippet.lab1;

/**
 * Test for Thread
 * @author hoang.pt
 */
public class ThreadTest {
	/**
	 * constructor
	 */
    public ThreadTest() {
    }

    /**
     * Main exec
     * @param String arguments
     */
    public static void main(String[] arguments) {
        //init
        MyThread t1 = new MyThread("hoang.pt");
        t1.start();

        MyRunnable r = new MyRunnable();
        Thread t2 = new Thread(r, "Thread runnable");
        t2.start();

        System.out.println(Thread.activeCount());

    }

}
